﻿using System;
using System.Windows;

namespace GestureMatching
{
    /// <summary>
    /// Interaction logic for TestWindow.xaml
    /// </summary>
    public partial class TestWindow : Window
    {
        KinectOperator kinectOperator;

        public TestWindow()
        {
            InitializeComponent();
            kinectOperator = KinectOperator.Me(kinectSensorChooser);
            InitializeOutputListBox();
        }

        public void WindowLoaded(object sender, RoutedEventArgs e)
        {
            kinectOperator.InitializeKinectOperator();
        }

        public void WindowClosing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            kinectOperator.CloseKinectOperator();
        }

        public void InitializeOutputListBox()
        {
            kinectOperator.InitializeOutputListBox(outputListBox);
        }

        private void StartGesture(object sender, RoutedEventArgs e)
        {
            Console.WriteLine("手势开始。。。。。。。。。。。。。。。。。。");
        }

        private void EndGesture(object sender, RoutedEventArgs e)
        {
            Console.WriteLine("手势结束。。。。。。。。。。。。。。。。。。");
        }
    }
}